package cn.yl.course.server.entity;

import cn.yl.api.server.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程节内容
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("course_lesson")
@ApiModel(value = "CourseLesson对象", description = "课程节内容")
public class CourseLesson extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程id")
    @TableField("course_id")
    private Integer courseId;

    @ApiModelProperty("章节id")
    @TableField("section_id")
    private Integer sectionId;

    @ApiModelProperty("课时主题")
    @TableField("theme")
    private String theme;

    @ApiModelProperty("课时时长(分钟)")
    @TableField("duration")
    private Integer duration;

    @ApiModelProperty("是否免费")
    @TableField("is_free")
    private Boolean free;

    @ApiModelProperty("是否删除")
    @TableField("is_del")
    @TableLogic
    private Boolean del;

    @ApiModelProperty("排序字段")
    @TableField("order_num")
    private Integer orderNum;

    @ApiModelProperty("课时状态,0-隐藏，1-未发布，2-已发布")
    @TableField("status")
    private Integer status;


}
